<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" Content="text-html; charset=Windows-1252">
<title>To write text for a pop-up window</title>
<style>@import url(coUA.css);</style>
<link disabled rel="stylesheet" href="htmlhelp.css">
</HEAD>

<BODY>
<h1>To write text for a pop-up window</h1>

<ul>
<li>Write the text for your pop-up windows, using any text editor, in the following format:
<p><code>
&lt;SCRIPT Language=JavaScript&gt;
<br><i>font_variable</i>="<i>Facename[, point size[, charset[, PLAIN BOLD ITALIC UNDERLINE]]]</i>"
<br><i>text_variable</i>="<i>A Pop-up Window</i>"
<br><i>text_variable2</i>="<i>Another Pop-up Window"</i>
<br>&lt;/SCRIPT&gt;
</code></p>

<p>where <i>font_variable</i> is the name of the variable that specifies the font attributes for the text, and <i>text_variable</i> is the name of the variable that specifies the text to appear in the pop-up window. </p>
</li>
</ul>

<h3>Example</h3>
<p>The following script specifies 10 point italic Helvetica as the font to use for the text and defines one pop-up window:</p>

<p><pre><code>
&lt;SCRIPT Language=JavaScript&gt;
<br>    MyFont="Helvetica,10,,italic"
<br>    MyText="This is a pop-up window."
&lt;/SCRIPT&gt;
</pre></code></p>


<h3>Notes</h3>
<ul>
<li>You can place the pop-up windows anywhere within the &lt;BODY&gt; start and end tags of your HTML file.</li>

<li>The text for pop-up windows can also be stored in a <a href="ocx_scripts_popup_js.htm">text file</a> with the .js file name extension that you reference from your HTML file. 

</ul>

<br>
<table border="0" cellpadding="0" cellspacing="4">
<tr> 
<td valign="top"><a href="ocx_scripts_popup2.htm"><img src="step2.gif" alt="next step" border="0"></a>
</td><td><a href="ocx_scripts_popup2.htm">Insert the HTML Help ActiveX control in your HTML file</A>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>

</BODY>
</HTML>
